package com.shenglaotuan.community.article.mapper;

import com.shenglaotuan.community.article.entity.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shenglaotuan.community.article.entity.ArticleSimpleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ruidong
 * @since 2020-08-22
 */
public interface ArticleMapper extends BaseMapper<Article> {

    /**
     * 获取首页显示的文章数据
     * @param articles 文章id
     * @return 首页显示的文章数据
     */
    List<ArticleSimpleVO> findSimpleArticle(@Param("articles") List<Article> articles);
}
